<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@include file="/common-app/taglibs.jsp"%>

<div class="t_bar2"><span class="color_red">*</span>上年财务收入情况（单位：万元）</div>
<table class="t_css table01" width="100%" border="0" cellpadding="0" id="basicInformation6" cellspacing="1">

	<tr>
		<td align="right">收入总计：</td>
		<td >
			<input  type="text"  id="org_total_income" label="收入总计"  class="gray" disabled="disabled" onfocus="InitInput.setNumber(this,9,4,2)"  
			name="organizations/org_total_income" style="text-align:right; width: 120px;" 
			value="<x:out select="$xmlData/data/organizations/org_total_income"/>"/>
		</td>
		<td colspan="2">
		
		</td>
	</tr>
	<tr>
		<td align="right">其中，技术性收入：</td>
		<td >
			<input type="text" id="org_technology_income" label="其中，技术性收入" name="organizations/org_technology_income" class="input_css required" onfocus="InitInput.setNumber(this,9,4,2)" 
         style="text-align:right; width: 120px;" value="<x:out select="$xmlData/data/organizations/org_technology_income"/>"
        onchange="countFundAuto('org_','technology_income,countryproject_income,localproject_income,career_income,other_income','total_income');
        			calculatePrc('org_total_income','org_technology_income','org_tecproportion_income');
        			calculatePrc('org_total_income','org_profittax','org_profittax_proportion');"/>
		</td>
		<td align="right">技术性收入占总收入的比例（%）：</td>
		<td >

			<input type="text" id="org_tecproportion_income" label="技术性收入占总收入的比例" class="gray" disabled onfocus="InitInput.setNumber(this,7,2,2)"  
			 name="organizations/org_tecproportion_income" style="text-align:right; width:120px"  value="<x:out select="$xmlData/data/organizations/org_tecproportion_income"/>"/>
		</td>
		
	</tr>
	
	<tr>
		<td align="right">其中，计划项目拨款：</td>
		<td colspan="3" >
			<input type="text" id="org_project_income" label="其中，计划项目拨款"  onfocus="InitInput.setNumber(this,9,4,2)" 
			class="gray" disabled  name="organizations/org_project_income" 
			style="text-align:right; width: 120px;" value="<x:out select="$xmlData/data/organizations/org_project_income"/>"/>
		</td>
		</tr>
	<tr>
		<td align="right">国家计划项目拨款：</td>
		<td >
			<input type="text"  id="org_countryproject_income" label="国家计划项目拨款" class="input_css required" onfocus="InitInput.setNumber(this,9,4,2)" 
			name="organizations/org_countryproject_income"  style="text-align:right; width: 120px;" 
			value="<x:out select="$xmlData/data/organizations/org_countryproject_income"/>"
			onchange="countFundAuto('org_','countryproject_income,localproject_income','project_income');
			countFundAuto('org_','technology_income,countryproject_income,localproject_income,career_income,other_income','total_income');
			calculatePrc('org_total_income','org_technology_income','org_tecproportion_income');
			calculatePrc('org_total_income','org_profittax','org_profittax_proportion');"/>
		</td>

		<td align="right">地方计划项目拨款：</td>
		<td >
			<input type="text"  id="org_localproject_income" label="地方计划项目拨款" class="input_css required" onfocus="InitInput.setNumber(this,9,4,2)" name="organizations/org_localproject_income" 
			style="text-align:right; width: 120px;" value="<x:out select="$xmlData/data/organizations/org_localproject_income"/>"
			onchange="countFundAuto('org_','countryproject_income,localproject_income','project_income');
			countFundAuto('org_','technology_income,countryproject_income,localproject_income,career_income,other_income','total_income');
			calculatePrc('org_total_income','org_technology_income','org_tecproportion_income');
			calculatePrc('org_total_income','org_profittax','org_profittax_proportion');"/>
		</td>
	</tr>
	
	<tr >
		<td align="right">其中，事业费拨款：</td>
		<td >
			<input type="text" id="org_career_income" label="其中，事业费拨款" class="input_css required" onfocus="InitInput.setNumber(this,9,4,2)" 
			name="organizations/org_career_income" style="text-align:right; width: 120px;"
			value="<x:out select="$xmlData/data/organizations/org_career_income"/>"
			onchange="countFundAuto('org_','technology_income,countryproject_income,localproject_income,career_income,other_income','total_income');
			calculatePrc('org_total_income','org_technology_income','org_tecproportion_income');
			calculatePrc('org_total_income','org_profittax','org_profittax_proportion');" />
		</td>
		<td align="right">其中，其它收入：</td>
		<td >
			<input type="text"  id="org_other_income" label="其中，其它收入" class="input_css required" onfocus="InitInput.setNumber(this,9,4,2)" 
			name="organizations/org_other_income" style="text-align:right; width: 120px;"
			value="<x:out select="$xmlData/data/organizations/org_other_income"/>"
			onchange="countFundAuto('org_','technology_income,countryproject_income,localproject_income,career_income,other_income','total_income');
			calculatePrc('org_total_income','org_technology_income','org_tecproportion_income');
			calculatePrc('org_total_income','org_profittax','org_profittax_proportion');"/>
		</td>
	</tr>
	<!--数字小数位  -->
	<tr >
		<td align="right">利税总额：</td>
		<td >
			<input type="text" label="利税总额" class="input_css required" name="organizations/org_profittax" id="org_profittax" 
			onfocus="InitInput.setNumber(this,9,4,2)" style="text-align:right; width: 120px;" 
			value="<x:out select="$xmlData/data/organizations/org_profittax"/>"
			onchange="calculatePrc('org_total_income','org_profittax','org_profittax_proportion');" />
		</td>
		<td align="right">利税总额占总收入的比例（%）：</td>
		<td >


			<input type="text" id="org_profittax_proportion"  label="利税总额占总收入的比例"  class="gray" disabled name="organizations/org_profittax_proportion" 
			 onfocus="InitInput.setNumber(this,7,2,2)" style="text-align:right; width: 120px;"  value="<x:out select="$xmlData/data/organizations/org_profittax_proportion"/>"/>

		</td>
	</tr>
</table>
<br>
<div class="t_bar2"><span class="color_red">*</span>上年财务支出情况（单位：万元）</div>
<table class="t_css table01" width="100%" border="0" cellpadding="0" id="basicInformation7" cellspacing="1">

	<tr>
		<td align="right">支出总计：</td>
		<td >
			<input type="text" label="支出总计"  id="org_spend_total" onfocus="InitInput.setNumber(this,9,4,2)" 
			name="organizations/org_spend_total" style="text-align:right; width: 120px;" class="gray" disabled  
			value="<x:out select="$xmlData/data/organizations/org_spend_total"/>"/>
		</td>
		<td colspan="2">
		
		</td>
	</tr>
	
	<tr>
		<td  align="right">其中，人员经费支出：</td>
		<td >
			<input type="text" label="其中，人员经费支出" class="input_css required" id="org_person_spend" onfocus="InitInput.setNumber(this,9,4,2)"  name="organizations/org_person_spend" 
			style="text-align:right; width: 120px;" value="<x:out select="$xmlData/data/organizations/org_person_spend"/>"
			onchange="countFundAuto('org_','person_spend,common_spend,repair_spend,other_spend','spend_total');"/>
		</td>
		<td  align="right">其中，日常公用支出：</td>
		<td >
			<input type="text" label="其中，日常公用支出" class="input_css required" id="org_common_spend" onfocus="InitInput.setNumber(this,9,4,2)" name="organizations/org_common_spend" 
			style="text-align:right; width: 120px;"  value="<x:out select="$xmlData/data/organizations/org_common_spend"/>"
			onchange="countFundAuto('org_','person_spend,common_spend,repair_spend,other_spend','spend_total');"/>
		</td>
	</tr>
	
	<tr>
		<td  align="right" >其中，设备及维修支出：</td>
		<td >
<input type="text" label="其中，设备及维修支出" class="input_css required" id="org_repair_spend" onfocus="InitInput.setNumber(this,9,4,2)"  name="organizations/org_repair_spend" 
     style="text-align:right; width: 120px;" value="<x:out select="$xmlData/data/organizations/org_repair_spend"/>"
      onchange="countFundAuto('org_','person_spend,common_spend,repair_spend,other_spend','spend_total');"/>
		</td>
		<td  align="right" >其中，其它支出：</td>
		<td >
			<input type="text" label="其中，其它支出" class="input_css required" id="org_other_spend" onfocus="InitInput.setNumber(this,9,4,2)" name="organizations/org_other_spend" 
			style="text-align:right; width: 120px;"  value="<x:out select="$xmlData/data/organizations/org_other_spend"/>"
			onchange="countFundAuto('org_','person_spend,common_spend,repair_spend,other_spend','spend_total');"/>
		</td>
	</tr>
</table>	
	
	
<script type="text/javascript">
	function calculatePrc(id1,id2,id3){
		var sumCount=$("#"+id1).val();
		if(sumCount!=""){
			sumCount=eval(sumCount);
		}
		var count=$("#"+id2).val();
		if(sumCount!="0"&&sumCount!=""&&count!=""){	
			var percent=(parseFloat(count)/parseFloat(sumCount))*100;
			percent=formatNumberAuto(percent.toString(), 7, 2, 2);
			$("#"+id3).val(percent);
		}else{
			$("#"+id3).val("");
		}
	}
</script>	
	